.class public final Lnbisdk/js;
.super Lnbisdk/dy;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lnbisdk/js$a;
    }
.end annotation


# instance fields
.field private aP:[B

.field private cW:Lnbisdk/rj;

.field private len:I

.field private od:[B

.field private oe:Lnbisdk/fk;

.field private of:Lcom/navbuilder/nb/NBException;

.field private og:B

.field private oh:B

.field private oi:Lnbisdk/dz;

.field private oj:Lnbisdk/fb;


# direct methods
.method public constructor <init>(Lnbisdk/rj;[B)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/dy;-><init>()V

    iput-object p1, p0, Lnbisdk/js;->cW:Lnbisdk/rj;

    iput-object p2, p0, Lnbisdk/js;->od:[B

    return-void
.end method

.method static synthetic a(Lnbisdk/js;)V
    .locals 1

    iget-object v0, p0, Lnbisdk/js;->cW:Lnbisdk/rj;

    invoke-interface {v0, p0}, Lnbisdk/rj;->e(Lnbisdk/dy;)V

    return-void
.end method

.method private hr()Z
    .locals 2

    iget-object v0, p0, Lnbisdk/js;->oe:Lnbisdk/fk;

    invoke-virtual {v0}, Lnbisdk/fk;->getName()Ljava/lang/String;

    move-result-object v0

    const-string v1, "iden-receipt"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method


# virtual methods
.method protected final a(Lnbisdk/fb;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lnbisdk/rp;
        }
    .end annotation

    const/4 v4, 0x0

    iget-object v0, p0, Lnbisdk/js;->oj:Lnbisdk/fb;

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "realize called in parallel"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    :try_start_0
    iput-object p1, p0, Lnbisdk/js;->oj:Lnbisdk/fb;

    invoke-virtual {p1}, Lnbisdk/fb;->length()I

    move-result v0

    iput v0, p0, Lnbisdk/js;->len:I

    invoke-virtual {p1}, Lnbisdk/fb;->readByte()B

    move-result v0

    iput-byte v0, p0, Lnbisdk/js;->oh:B

    invoke-virtual {p1}, Lnbisdk/fb;->readByte()B

    move-result v0

    iput-byte v0, p0, Lnbisdk/js;->og:B

    iget-byte v0, p0, Lnbisdk/js;->og:B

    const/16 v1, 0xff

    if-ne v0, v1, :cond_1

    invoke-virtual {p1}, Lnbisdk/fb;->jR()[B

    move-result-object v0

    iput-object v0, p0, Lnbisdk/js;->aP:[B
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_0
    iput-object v4, p0, Lnbisdk/js;->oj:Lnbisdk/fb;

    return-void

    :cond_1
    :try_start_1
    new-instance v0, Lnbisdk/on;

    iget-object v1, p0, Lnbisdk/js;->cW:Lnbisdk/rj;

    new-instance v2, Ljava/lang/String;

    iget-object v3, p0, Lnbisdk/js;->od:[B

    invoke-direct {v2, v3}, Ljava/lang/String;-><init>([B)V

    invoke-interface {v1, v2}, Lnbisdk/rj;->aK(Ljava/lang/String;)I

    move-result v1

    invoke-direct {v0, p1, v1}, Lnbisdk/on;-><init>(Lnbisdk/ou;I)V

    new-instance v1, Lnbisdk/js$a;

    invoke-direct {v1, p0, v0}, Lnbisdk/js$a;-><init>(Lnbisdk/js;Lnbisdk/ou;)V

    iget-byte v0, p0, Lnbisdk/js;->oh:B

    and-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    :goto_1
    if-eqz v0, :cond_3

    invoke-static {v1}, Lnbisdk/pc;->b(Lnbisdk/ou;)J

    new-instance v0, Lnbisdk/ac;

    invoke-direct {v0, v1}, Lnbisdk/ac;-><init>(Lnbisdk/ou;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :goto_2
    :try_start_2
    iget-object v1, p0, Lnbisdk/js;->cW:Lnbisdk/rj;

    invoke-interface {v1}, Lnbisdk/rj;->kP()Lnbisdk/jz;

    move-result-object v1

    invoke-static {v1, v0}, Lnbisdk/gq;->a(Lnbisdk/jz;Lnbisdk/ou;)Lnbisdk/fk;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/js;->oe:Lnbisdk/fk;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Lnbisdk/ng; {:try_start_2 .. :try_end_2} :catch_0
    .catch Lnbisdk/rt; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_3
    new-instance v0, Lcom/navbuilder/nb/NBException;

    const/16 v1, 0xe

    invoke-direct {v0, v1}, Lcom/navbuilder/nb/NBException;-><init>(I)V

    iput-object v0, p0, Lnbisdk/js;->of:Lcom/navbuilder/nb/NBException;
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    iput-object v4, p0, Lnbisdk/js;->oj:Lnbisdk/fb;

    throw v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_1

    :catch_1
    move-exception v0

    :try_start_4
    new-instance v0, Lcom/navbuilder/nb/NBException;

    const/4 v1, 0x2

    invoke-direct {v0, v1}, Lcom/navbuilder/nb/NBException;-><init>(I)V

    iput-object v0, p0, Lnbisdk/js;->of:Lcom/navbuilder/nb/NBException;
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_0

    :cond_3
    move-object v0, v1

    goto :goto_2
.end method

.method public final dA()Lnbisdk/fk;
    .locals 2

    invoke-virtual {p0}, Lnbisdk/js;->isError()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "no TPS document on error"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    invoke-direct {p0}, Lnbisdk/js;->hr()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/js;->oe:Lnbisdk/fk;

    :goto_0
    return-object v0

    :cond_1
    iget-object v0, p0, Lnbisdk/js;->oe:Lnbisdk/fk;

    invoke-virtual {v0}, Lnbisdk/fk;->ae()Ljava/util/Enumeration;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lnbisdk/fk;

    move-object v0, p0

    goto :goto_0

    :cond_2
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "TPS reply document has no child"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public final dB()Lcom/navbuilder/nb/NBException;
    .locals 2

    invoke-virtual {p0}, Lnbisdk/js;->dx()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "not an internal error"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v0, p0, Lnbisdk/js;->of:Lcom/navbuilder/nb/NBException;

    return-object v0
.end method

.method public final dC()Lcom/navbuilder/nb/NBException;
    .locals 3

    invoke-virtual {p0}, Lnbisdk/js;->dy()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "not a stream error"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    new-instance v0, Lcom/navbuilder/nb/NBException;

    const/4 v1, 0x2

    iget-object v2, p0, Lnbisdk/js;->aP:[B

    invoke-direct {v0, v1, v2}, Lcom/navbuilder/nb/NBException;-><init>(I[B)V

    return-object v0
.end method

.method public final dD()Lcom/navbuilder/nb/NBException;
    .locals 2

    invoke-virtual {p0}, Lnbisdk/js;->dz()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "not a server error"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    new-instance v0, Lcom/navbuilder/nb/NBException;

    iget-object v1, p0, Lnbisdk/js;->oe:Lnbisdk/fk;

    invoke-static {v1}, Lcom/navbuilder/nb/NBException;->getReplyErrorCode(Lnbisdk/fk;)I

    move-result v1

    invoke-direct {v0, v1}, Lcom/navbuilder/nb/NBException;-><init>(I)V

    return-object v0
.end method

.method public final dE()B
    .locals 1

    iget-byte v0, p0, Lnbisdk/js;->og:B

    return v0
.end method

.method public final dF()F
    .locals 1

    iget-object v0, p0, Lnbisdk/js;->oj:Lnbisdk/fb;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/js;->oj:Lnbisdk/fb;

    invoke-virtual {v0}, Lnbisdk/fb;->dF()F

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/high16 v0, 0x3f80

    goto :goto_0
.end method

.method public final dG()Lnbisdk/dz;
    .locals 1

    iget-object v0, p0, Lnbisdk/js;->oi:Lnbisdk/dz;

    return-object v0
.end method

.method public final dH()I
    .locals 1

    iget v0, p0, Lnbisdk/js;->len:I

    return v0
.end method

.method public final dv()[B
    .locals 1

    iget-object v0, p0, Lnbisdk/js;->od:[B

    return-object v0
.end method

.method public final dw()Z
    .locals 2

    iget-object v0, p0, Lnbisdk/js;->of:Lcom/navbuilder/nb/NBException;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/js;->of:Lcom/navbuilder/nb/NBException;

    invoke-virtual {v0}, Lcom/navbuilder/nb/NBException;->getErrorCode()I

    move-result v0

    const/16 v1, 0x7d2

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final dx()Z
    .locals 1

    iget-object v0, p0, Lnbisdk/js;->of:Lcom/navbuilder/nb/NBException;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final dy()Z
    .locals 2

    iget-byte v0, p0, Lnbisdk/js;->og:B

    const/16 v1, 0xff

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final dz()Z
    .locals 2

    invoke-direct {p0}, Lnbisdk/js;->hr()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lnbisdk/js;->oe:Lnbisdk/fk;

    invoke-virtual {v0}, Lnbisdk/fk;->getName()Ljava/lang/String;

    move-result-object v0

    const-string v1, "reply"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final e(Lnbisdk/dz;)V
    .locals 0

    iput-object p1, p0, Lnbisdk/js;->oi:Lnbisdk/dz;

    return-void
.end method

.method public final isError()Z
    .locals 1

    invoke-virtual {p0}, Lnbisdk/js;->dx()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lnbisdk/js;->dy()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lnbisdk/js;->dz()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method
